/**   
 * @Title: User.java   
 * @Package edu.adweb.ssh.bean   
 * @Description: TODO(用一句话描述该文件做什么)
 * Copyright: Copyright (c)  2011  
 * Company: Fudan   
 * @author FangYong   
 * @date 2011 2011-3-30 下午09:06:18   
 *@version 1.0   
 */    
package edu.adweb.ssh.bean;

import java.io.Serializable;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;


/**
 * @ClassName: User   
 * @Description: TODO(这里用一句话描述这个类的作用)   
 * @author FangYong   
 * @date 2011-3-30 下午09:06:18   
 */
@SuppressWarnings("serial")
@Entity
@Table(name="Usr")
public class User implements Serializable{
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name = "ID")
	private Integer id;
	
	@Basic
	@Column(name = "NAME",unique = true)
	private String name;
	
	@Basic
	@Column(name = "PASSWORD")
	private String password;

	/**
	 * @return the id
	 */
	public Integer getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(Integer id) {
		this.id = id;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**   
	 * <p>Title: </p>   
	 * <p>Description: </p>   
	 * @param id
	 * @param name   
	 */    
	public User(Integer id, String name, String pass) {
		super();
		this.id = id;
		this.name = name;
		this.password = pass;
	}

	/**   
	 * <p>Title: </p>   
	 * <p>Description: </p>      
	 */    
	public User() {
		super();
	}

	/**
	 * @param password the password to set
	 */
	public void setPassword(String password) {
		this.password = password;
	}

	/**
	 * @return the password
	 */
	public String getPassword() {
		return password;
	}
	
	
}
